package cc.ycws.core.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import com.alibaba.fastjson.annotation.JSONField;

/**
  * <p>
  * 客户开门记录表
  * </p>
  *
  * @author tutu
  * @since 2018-05-22
  */
@TableName("cc_access_record")
public class CcAccessRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 客户编号
     */
    @TableField("customer_no")
    private String customerNo;

    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;

    /**
     * 设备编号
     */
    @TableField("device_no")
    private String deviceNo;

    /**
     * 设备名称
     */
    @TableField("device_name")
    private String deviceName;

    /**
     * 客户开门的方式(0=刷脸 1=刷卡 2=人卡合一模式)
     */
    @TableField("access_type")
    private String accessType;

    /**
     * 刷脸图片地址
     */
    @TableField("access_url")
    private String accessUrl;

    /**
     * 刷卡卡号
     */
    @TableField("access_card_no")
    private String accessCardNo;

    /**
     * 授权人编号,也就是业主编号
     */
    @TableField("accredit_customer_no")
    private String accreditCustomerNo;

    /**
     * 建档人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String creator;

    /**
     * 建档时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time", fill = FieldFill.INSERT_UPDATE)
    private Date createTime;

    /**
     * 修改人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String modifier;

    /**
     * 修改时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;

    /**
     * 备注
     */
    private String remarks;

    public Integer getId() {
    return id;
    }

    public void setId(Integer id) {
    this.id = id;
    }
    public String getCustomerNo() {
    return customerNo;
    }

    public void setCustomerNo(String customerNo) {
    this.customerNo = customerNo;
    }
    public String getCustomerName() {
    return customerName;
    }

    public void setCustomerName(String customerName) {
    this.customerName = customerName;
    }
    public String getDeviceNo() {
    return deviceNo;
    }

    public void setDeviceNo(String deviceNo) {
    this.deviceNo = deviceNo;
    }
    public String getDeviceName() {
    return deviceName;
    }

    public void setDeviceName(String deviceName) {
    this.deviceName = deviceName;
    }
    public String getAccessType() {
    return accessType;
    }

    public void setAccessType(String accessType) {
    this.accessType = accessType;
    }
    public String getAccessUrl() {
    return accessUrl;
    }

    public void setAccessUrl(String accessUrl) {
    this.accessUrl = accessUrl;
    }
    public String getAccessCardNo() {
    return accessCardNo;
    }

    public void setAccessCardNo(String accessCardNo) {
    this.accessCardNo = accessCardNo;
    }
    public String getAccreditCustomerNo() {
    return accreditCustomerNo;
    }

    public void setAccreditCustomerNo(String accreditCustomerNo) {
    this.accreditCustomerNo = accreditCustomerNo;
    }
    public String getCreator() {
    return creator;
    }

    public void setCreator(String creator) {
    this.creator = creator;
    }
    public Date getCreateTime() {
    return createTime;
    }

    public void setCreateTime(Date createTime) {
    this.createTime = createTime;
    }
    public String getModifier() {
    return modifier;
    }

    public void setModifier(String modifier) {
    this.modifier = modifier;
    }
    public Date getModifyTime() {
    return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
    this.modifyTime = modifyTime;
    }
    public String getRemarks() {
    return remarks;
    }

    public void setRemarks(String remarks) {
    this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "CcAccessRecord{" +
                "id=" + id +
                ", customerNo=" + customerNo +
                ", customerName=" + customerName +
                ", deviceNo=" + deviceNo +
                ", deviceName=" + deviceName +
                ", accessType=" + accessType +
                ", accessUrl=" + accessUrl +
                ", accessCardNo=" + accessCardNo +
                ", accreditCustomerNo=" + accreditCustomerNo +
                ", creator=" + creator +
                ", createTime=" + createTime +
                ", modifier=" + modifier +
                ", modifyTime=" + modifyTime +
                ", remarks=" + remarks +
        "}";
    }
}
